//Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.
//--------------------------------------------------------------------------------
//Tool Version: Vivado v.2016.2 (lin64) Build 1577090 Thu Jun  2 16:32:35 MDT 2016
//Date        : Mon Sep 26 10:15:48 2016
//Host        : localhost.localdomain running 64-bit CentOS release 6.3 (Final)
//Command     : generate_target design_1_wrapper.bd
//Design      : design_1_wrapper
//Purpose     : IP block netlist
//--------------------------------------------------------------------------------
`timescale 1 ps / 1 ps

module dpsm_top(
   input         CLK_I , 
   input         RESET_I,
   
   input         uart_rx,
   output        uart_tx,
	
   inout  [15:0] mcb3_dram_dq     ,
   output [12:0] mcb3_dram_a      ,
   output [2:0]  mcb3_dram_ba     ,
   output        mcb3_dram_ras_n  ,
   output        mcb3_dram_cas_n  ,
   output        mcb3_dram_we_n   ,
   output        mcb3_dram_odt    ,
   output        mcb3_dram_reset_n,
   output        mcb3_dram_cke    ,
   output        mcb3_dram_dm     ,
   inout         mcb3_dram_udqs   ,
   inout         mcb3_dram_udqs_n ,
   inout         mcb3_rzq         ,

   output        mcb3_dram_udm    ,
   inout         mcb3_dram_dqs    ,
   inout         mcb3_dram_dqs_n  ,
   output        mcb3_dram_ck     ,
   output        mcb3_dram_ck_n   ,
	
    output wire [ 4:0  ] R                   , 
    output wire [ 5:0  ] G                   , 
    output wire [ 4:0  ] B                   , 
    output wire          vga_h_sync          , 
    output wire          vga_v_sync          ,
    output wire          vga_pclk            , 

    output wire          vga_pwr_off         ,
    output wire          backlight_pwm       ,    
    input  wire          pl_clk              ,
    input  wire          vp_in               ,
    input  wire          vn_in               , 
    input  wire          tp_in               ,
    input  wire          tn_in               ,  
            
    input  wire [ 7:0  ] camera0_yuv         , 
    input  wire          camera0_h_sync      , 
    input  wire          camera0_v_sync      , 
    input  wire          camera0_pclk        , 
    output wire          camera0_pwrdown     , 
    output wire          camera0_resetn      , 
    output wire          camera0_xclk        ,

    output wire          camera0_sclk        , 
    inout  wire          camera0_sda         , 

    input  wire [ 7:0  ] camera1_yuv         , 
    input  wire          camera1_h_sync      , 
    input  wire          camera1_v_sync      , 
    input  wire          camera1_pclk        , 
    output wire          camera1_pwrdown     , 
    output wire          camera1_resetn      , 
    output wire          camera1_xclk        ,

    output wire          camera1_sclk        , 
    inout  wire          camera1_sda         , 

    output wire [3:0]    phase_l             ,
    output wire [3:0]    phase_r             ,
    output wire [3:0]    phase_x             ,
    output wire [3:0]    phase_y             ,    

    input  wire          heat_touch          ,
    input  wire          hall_touch          ,
    input  wire          posl_touch          ,
    input  wire          posr_touch          ,
    output wire          pwr_ctrl            ,
    
    output wire          gaoya               ,
    output wire          beep                ,
    output wire          heat                ,

    output wire          dac_sdata           ,
    output wire          dac_sclk            ,
    output wire          dac_load            ,

    output wire          rtc_scl             ,
    inout  wire          rtc_sda             ,

    output wire          lcdfanzhuan         ,
    //input  wire[10:0]    fusion_key          ,
    input  wire          pwr_key
);

wire FCLK_CLK0;
wire FCLK_CLK1;
wire FCLK_CLK2;
wire A100M_RESETN;
wire A25M_RESETN;
wire pclk0;
wire pclk1;

wire SDIO_0_wp;
wire SDIO_0_cdn = 0;

wire SDIO_1_cdn = 0;
wire SDIO_1_wp  = 0;

assign lcdfanzhuan = 0;

wire          Core0_nIRQ        ;
wire [2:0   ] IRQ_F2P           ;
wire [31:0  ] REGS_AXI_araddr   ; 
wire [2:0   ] REGS_AXI_arprot   ; 
wire [0:0   ] REGS_AXI_arready  ; 
wire [0:0   ] REGS_AXI_arvalid  ; 
wire [31:0  ] REGS_AXI_awaddr   ; 
wire [2:0   ] REGS_AXI_awprot   ; 
wire [0:0   ] REGS_AXI_awready  ; 
wire [0:0   ] REGS_AXI_awvalid  ; 
wire [0:0   ] REGS_AXI_bready   ; 
wire [1:0   ] REGS_AXI_bresp    ; 
wire [0:0   ] REGS_AXI_bvalid   ; 
wire [31:0  ] REGS_AXI_rdata    ; 
wire [0:0   ] REGS_AXI_rready   ; 
wire [1:0   ] REGS_AXI_rresp    ; 
wire [0:0   ] REGS_AXI_rvalid   ; 
wire [31:0  ] REGS_AXI_wdata    ; 
wire [0:0   ] REGS_AXI_wready   ; 
wire [3:0   ] REGS_AXI_wstrb    ; 
wire [0:0   ] REGS_AXI_wvalid   ; 

wire [ 31:0 ] VGA_AXI_araddr   ; 
wire [ 1:0  ] VGA_AXI_arburst  ; 
wire [ 3:0  ] VGA_AXI_arcache  ; 
wire [ 0:0  ] VGA_AXI_arid     ; 
wire [ 7:0  ] VGA_AXI_arlen    ; 
wire [ 0:0  ] VGA_AXI_arlock   ; 
wire [ 2:0  ] VGA_AXI_arprot   ; 
wire [ 3:0  ] VGA_AXI_arqos    ; 
wire          VGA_AXI_arready  ; 
wire [ 3:0  ] VGA_AXI_arregion ; 
wire [ 2:0  ] VGA_AXI_arsize   ; 
wire [ 0:0  ] VGA_AXI_aruser   ; 
wire          VGA_AXI_arvalid  ; 
wire [ 31:0 ] VGA_AXI_awaddr   ; 
wire [ 1:0  ] VGA_AXI_awburst  ; 
wire [ 3:0  ] VGA_AXI_awcache  ; 
wire [ 0:0  ] VGA_AXI_awid     ; 
wire [ 7:0  ] VGA_AXI_awlen    ; 
wire [ 0:0  ] VGA_AXI_awlock   ; 
wire [ 2:0  ] VGA_AXI_awprot   ; 
wire [ 3:0  ] VGA_AXI_awqos    ; 
wire          VGA_AXI_awready  ; 
wire [ 3:0  ] VGA_AXI_awregion ; 
wire [ 2:0  ] VGA_AXI_awsize   ; 
wire [ 0:0  ] VGA_AXI_awuser   ; 
wire          VGA_AXI_awvalid  ; 
wire [ 0:0  ] VGA_AXI_bid      ; 
wire          VGA_AXI_bready   ; 
wire [ 1:0  ] VGA_AXI_bresp    ; 
wire          VGA_AXI_bvalid   ; 
wire [ 31:0 ] VGA_AXI_rdata    ; 
wire [ 0:0  ] VGA_AXI_rid      ; 
wire          VGA_AXI_rlast    ; 
wire          VGA_AXI_rready   ; 
wire [ 1:0  ] VGA_AXI_rresp    ; 
wire [ 0:0  ] VGA_AXI_ruser    ; 
wire          VGA_AXI_rvalid   ; 
wire [ 31:0 ] VGA_AXI_wdata    ; 
wire          VGA_AXI_wlast    ; 
wire          VGA_AXI_wready   ; 
wire [ 3:0  ] VGA_AXI_wstrb    ; 
wire [ 0:0  ] VGA_AXI_wuser    ; 
wire          VGA_AXI_wvalid   ; 

wire [ 31:0 ] CAMERA_AXI_araddr   ; 
wire [ 1:0  ] CAMERA_AXI_arburst  ; 
wire [ 3:0  ] CAMERA_AXI_arcache  ; 
wire [ 0:0  ] CAMERA_AXI_arid     ; 
wire [ 7:0  ] CAMERA_AXI_arlen    ; 
wire [ 0:0  ] CAMERA_AXI_arlock   ; 
wire [ 2:0  ] CAMERA_AXI_arprot   ; 
wire [ 3:0  ] CAMERA_AXI_arqos    ; 
wire          CAMERA_AXI_arready  ; 
wire [ 3:0  ] CAMERA_AXI_arregion ; 
wire [ 2:0  ] CAMERA_AXI_arsize   ; 
wire [ 0:0  ] CAMERA_AXI_aruser   ; 
wire          CAMERA_AXI_arvalid  ; 
wire [ 31:0 ] CAMERA_AXI_awaddr   ; 
wire [ 1:0  ] CAMERA_AXI_awburst  ; 
wire [ 3:0  ] CAMERA_AXI_awcache  ; 
wire [ 0:0  ] CAMERA_AXI_awid     ; 
wire [ 7:0  ] CAMERA_AXI_awlen    ; 
wire [ 0:0  ] CAMERA_AXI_awlock   ; 
wire [ 2:0  ] CAMERA_AXI_awprot   ; 
wire [ 3:0  ] CAMERA_AXI_awqos    ; 
wire          CAMERA_AXI_awready  ; 
wire [ 3:0  ] CAMERA_AXI_awregion ; 
wire [ 2:0  ] CAMERA_AXI_awsize   ; 
wire [ 0:0  ] CAMERA_AXI_awuser   ; 
wire          CAMERA_AXI_awvalid  ; 
wire [ 0:0  ] CAMERA_AXI_bid      ; 
wire          CAMERA_AXI_bready   ; 
wire [ 1:0  ] CAMERA_AXI_bresp    ; 
wire          CAMERA_AXI_bvalid   ; 
wire [ 31:0 ] CAMERA_AXI_rdata    ; 
wire [ 0:0  ] CAMERA_AXI_rid      ; 
wire          CAMERA_AXI_rlast    ; 
wire          CAMERA_AXI_rready   ; 
wire [ 1:0  ] CAMERA_AXI_rresp    ; 
wire [ 0:0  ] CAMERA_AXI_ruser    ; 
wire          CAMERA_AXI_rvalid   ; 
wire [ 31:0 ] CAMERA_AXI_wdata    ; 
wire          CAMERA_AXI_wlast    ; 
wire          CAMERA_AXI_wready   ; 
wire [ 3:0  ] CAMERA_AXI_wstrb    ; 
wire [ 0:0  ] CAMERA_AXI_wuser    ; 
wire          CAMERA_AXI_wvalid   ; 
wire          camera0_iclk        ;
wire          camera1_iclk        ;

wire [15:0]   camera0_cfgAddr     ;
wire [15:0]   camera1_cfgAddr     ;
wire [23:0]   camera0_cfgData     ;
wire [23:0]   camera1_cfgData     ;

wire [31:0  ] hardware_version    ;


wire [11:0  ] key_button = {pwr_key,11'h7ff};
//wire [11:0  ] key_button = {pwr_key,fusion_key}; // FUSION_V1

IBUFG i_inst0(
    .I ( camera0_pclk   ),
    .O ( camera0_iclk   )
);

BUFG  g_inst0(
    .I ( camera0_iclk   ),
    .O ( camera0_pclk_g )
);

IBUFG i_inst1(
    .I ( camera1_pclk   ),
    .O ( camera1_iclk   )
);

BUFG  g_inst1(
    .I ( camera1_iclk   ),
    .O ( camera1_pclk_g )
);

cpu_top cpu_top_inst0
(    
	.CLK    ( CLK_I      ) ,
	.RESET  ( RESET_I    ) ,
	
   .FCLK_CLK0              ( FCLK_CLK0            ) ,
   .FCLK_CLK1              ( FCLK_CLK1            ) ,
   .FCLK_CLK2              ( FCLK_CLK2            ) ,
	                                               
	.MCB_DDR3_rzq           ( mcb3_rzq             ) ,
	.MCB_DDR3_dram_we_n     ( mcb3_dram_we_n       ) ,
	.MCB_DDR3_dram_udqs_n   ( mcb3_dram_udqs_n     ) ,
	.MCB_DDR3_dram_udqs     ( mcb3_dram_udqs       ) ,
	.MCB_DDR3_dram_udm      ( mcb3_dram_udm        ) ,
	.MCB_DDR3_dram_ras_n    ( mcb3_dram_ras_n      ) ,
	.MCB_DDR3_dram_odt      ( mcb3_dram_odt        ) ,
	.MCB_DDR3_dram_ldm      ( mcb3_dram_dm         ) ,
	.MCB_DDR3_dram_dqs_n    ( mcb3_dram_dqs_n      ) ,
	.MCB_DDR3_dram_dqs      ( mcb3_dram_dqs        ) ,
	.MCB_DDR3_dram_dq       ( mcb3_dram_dq         ) ,
	.MCB_DDR3_dram_ddr3_rst ( mcb3_dram_reset_n    ) ,
	.MCB_DDR3_dram_clk_n    ( mcb3_dram_ck_n       ) ,
	.MCB_DDR3_dram_clk      ( mcb3_dram_ck         ) ,
	.MCB_DDR3_dram_cke      ( mcb3_dram_cke        ) ,
	.MCB_DDR3_dram_cas_n    ( mcb3_dram_cas_n      ) ,
	.MCB_DDR3_dram_ba       ( mcb3_dram_ba         ) ,
	.MCB_DDR3_dram_addr     ( mcb3_dram_a          ) ,

   .REGS_AXI_araddr        ( REGS_AXI_araddr      ) , 
   .REGS_AXI_arprot        ( REGS_AXI_arprot      ) , 
   .REGS_AXI_arready       ( REGS_AXI_arready     ) , 
   .REGS_AXI_arvalid       ( REGS_AXI_arvalid     ) , 
   .REGS_AXI_awaddr        ( REGS_AXI_awaddr      ) , 
   .REGS_AXI_awprot        ( REGS_AXI_awprot      ) , 
   .REGS_AXI_awready       ( REGS_AXI_awready     ) , 
   .REGS_AXI_awvalid       ( REGS_AXI_awvalid     ) , 
   .REGS_AXI_bready        ( REGS_AXI_bready      ) , 
   .REGS_AXI_bresp         ( REGS_AXI_bresp       ) , 
   .REGS_AXI_bvalid        ( REGS_AXI_bvalid      ) , 
   .REGS_AXI_rdata         ( REGS_AXI_rdata       ) , 
   .REGS_AXI_rready        ( REGS_AXI_rready      ) , 
   .REGS_AXI_rresp         ( REGS_AXI_rresp       ) , 
   .REGS_AXI_rvalid        ( REGS_AXI_rvalid      ) , 
   .REGS_AXI_wdata         ( REGS_AXI_wdata       ) , 
   .REGS_AXI_wready        ( REGS_AXI_wready      ) , 
   .REGS_AXI_wstrb         ( REGS_AXI_wstrb       ) , 
   .REGS_AXI_wvalid        ( REGS_AXI_wvalid      ) , 
                           
   .VGA_AXI_araddr         ( VGA_AXI_araddr       ) , 
   .VGA_AXI_arburst        ( VGA_AXI_arburst      ) , 
   .VGA_AXI_arcache        ( VGA_AXI_arcache      ) , 
   .VGA_AXI_arid           ( VGA_AXI_arid         ) , 
   .VGA_AXI_arlen          ( VGA_AXI_arlen        ) , 
   .VGA_AXI_arlock         ( VGA_AXI_arlock       ) , 
   .VGA_AXI_arprot         ( VGA_AXI_arprot       ) , 
   .VGA_AXI_arqos          ( VGA_AXI_arqos        ) , 
   .VGA_AXI_arready        ( VGA_AXI_arready      ) , 
   .VGA_AXI_arregion       ( VGA_AXI_arregion     ) , 
   .VGA_AXI_arsize         ( VGA_AXI_arsize       ) , 
   .VGA_AXI_aruser         ( VGA_AXI_aruser       ) , 
   .VGA_AXI_arvalid        ( VGA_AXI_arvalid      ) , 
   .VGA_AXI_rdata          ( VGA_AXI_rdata        ) , 
   .VGA_AXI_rid            ( VGA_AXI_rid          ) , 
   .VGA_AXI_rlast          ( VGA_AXI_rlast        ) , 
   .VGA_AXI_rready         ( VGA_AXI_rready       ) , 
   .VGA_AXI_rresp          ( VGA_AXI_rresp        ) , 
   .VGA_AXI_ruser          ( VGA_AXI_ruser        ) , 
   .VGA_AXI_rvalid         ( VGA_AXI_rvalid       ) , 
                           
   .CAMERA_AXI_awaddr      ( CAMERA_AXI_awaddr    ) , 
   .CAMERA_AXI_awburst     ( CAMERA_AXI_awburst   ) , 
   .CAMERA_AXI_awcache     ( CAMERA_AXI_awcache   ) , 
   .CAMERA_AXI_awid        ( CAMERA_AXI_awid      ) , 
   .CAMERA_AXI_awlen       ( CAMERA_AXI_awlen     ) , 
   .CAMERA_AXI_awlock      ( CAMERA_AXI_awlock    ) , 
   .CAMERA_AXI_awprot      ( CAMERA_AXI_awprot    ) , 
   .CAMERA_AXI_awqos       ( CAMERA_AXI_awqos     ) , 
   .CAMERA_AXI_awready     ( CAMERA_AXI_awready   ) , 
   .CAMERA_AXI_awregion    ( CAMERA_AXI_awregion  ) , 
   .CAMERA_AXI_awsize      ( CAMERA_AXI_awsize    ) , 
   .CAMERA_AXI_awuser      ( CAMERA_AXI_awuser    ) , 
   .CAMERA_AXI_awvalid     ( CAMERA_AXI_awvalid   ) , 
   .CAMERA_AXI_bid         ( CAMERA_AXI_bid       ) , 
   .CAMERA_AXI_bready      ( CAMERA_AXI_bready    ) , 
   .CAMERA_AXI_bresp       ( CAMERA_AXI_bresp     ) , 
   .CAMERA_AXI_bvalid      ( CAMERA_AXI_bvalid    ) , 
   .CAMERA_AXI_wdata       ( CAMERA_AXI_wdata     ) , 
   .CAMERA_AXI_wlast       ( CAMERA_AXI_wlast     ) , 
   .CAMERA_AXI_wready      ( CAMERA_AXI_wready    ) , 
   .CAMERA_AXI_wstrb       ( CAMERA_AXI_wstrb     ) , 
   .CAMERA_AXI_wuser       ( CAMERA_AXI_wuser     ) , 
   .CAMERA_AXI_wvalid      ( CAMERA_AXI_wvalid    ) ,
	
	.RS232_Uart_1_sout      ( uart_tx              ), 		 
	.RS232_Uart_1_sin       ( uart_rx              )
);

FUSION_TOP  FUSION_TOP_inst0 (  
    .clk_24mhz            ( FCLK_CLK2            ) ,
    .clk_25mhz            ( FCLK_CLK1            ) ,
    .clk_100mhz           ( FCLK_CLK0            ) ,
    .a25m_resetn          ( A100M_RESETN         ) ,
    .a100m_resetn         ( A25M_RESETN          ) ,
    
    .REGS_AXI_ACLK        ( FCLK_CLK0            ) , 
    .REGS_AXI_ARESETN     ( A100M_RESETN         ) ,
    .REGS_AXI_ARADDR      ( REGS_AXI_araddr      ) , 
    .REGS_AXI_ARPROT      ( REGS_AXI_arprot      ) , 
    .REGS_AXI_ARREADY     ( REGS_AXI_arready     ) , 
    .REGS_AXI_ARVALID     ( REGS_AXI_arvalid     ) , 
    .REGS_AXI_AWADDR      ( REGS_AXI_awaddr      ) , 
    .REGS_AXI_AWPROT      ( REGS_AXI_awprot      ) , 
    .REGS_AXI_AWREADY     ( REGS_AXI_awready     ) , 
    .REGS_AXI_AWVALID     ( REGS_AXI_awvalid     ) , 
    .REGS_AXI_BREADY      ( REGS_AXI_bready      ) , 
    .REGS_AXI_BRESP       ( REGS_AXI_bresp       ) , 
    .REGS_AXI_BVALID      ( REGS_AXI_bvalid      ) , 
    .REGS_AXI_RDATA       ( REGS_AXI_rdata       ) , 
    .REGS_AXI_RREADY      ( REGS_AXI_rready      ) , 
    .REGS_AXI_RRESP       ( REGS_AXI_rresp       ) , 
    .REGS_AXI_RVALID      ( REGS_AXI_rvalid      ) , 
    .REGS_AXI_WDATA       ( REGS_AXI_wdata       ) , 
    .REGS_AXI_WREADY      ( REGS_AXI_wready      ) , 
    .REGS_AXI_WSTRB       ( REGS_AXI_wstrb       ) , 
    .REGS_AXI_WVALID      ( REGS_AXI_wvalid      ) , 

    .VGA_AXI_ACLK         ( FCLK_CLK0            ) ,  
    .VGA_AXI_ARESETN      ( A100M_RESETN         ) , 
    .VGA_AXI_ARID         ( VGA_AXI_arid         ) ,
    .VGA_AXI_ARADDR       ( VGA_AXI_araddr       ) ,
    .VGA_AXI_ARLEN        ( VGA_AXI_arlen        ) ,
    .VGA_AXI_ARSIZE       ( VGA_AXI_arsize       ) ,
    .VGA_AXI_ARBURST      ( VGA_AXI_arburst      ) ,
    .VGA_AXI_ARLOCK       ( VGA_AXI_arlock       ) ,
    .VGA_AXI_ARCACHE      ( VGA_AXI_arcache      ) ,
    .VGA_AXI_ARPROT       ( VGA_AXI_arprot       ) ,
    .VGA_AXI_ARQOS        ( VGA_AXI_arqos        ) ,
    .VGA_AXI_ARUSER       ( VGA_AXI_aruser       ) ,
    .VGA_AXI_ARVALID      ( VGA_AXI_arvalid      ) ,
    .VGA_AXI_ARREADY      ( VGA_AXI_arready      ) ,
    .VGA_AXI_RID          ( VGA_AXI_rid          ) ,
    .VGA_AXI_RDATA        ( VGA_AXI_rdata        ) ,
    .VGA_AXI_RRESP        ( VGA_AXI_rresp        ) ,
    .VGA_AXI_RLAST        ( VGA_AXI_rlast        ) ,
    .VGA_AXI_RUSER        ( VGA_AXI_ruser        ) ,
    .VGA_AXI_RVALID       ( VGA_AXI_rvalid       ) ,
    .VGA_AXI_RREADY       ( VGA_AXI_rready       ) ,

    .CAMERA_AXI_ACLK      ( FCLK_CLK0            ) ,  
    .CAMERA_AXI_ARESETN   ( A100M_RESETN         ) , 
    .CAMERA_AXI_AWID      ( CAMERA_AXI_awid      ) ,  
    .CAMERA_AXI_AWADDR    ( CAMERA_AXI_awaddr    ) ,  
    .CAMERA_AXI_AWLEN     ( CAMERA_AXI_awlen     ) ,   
    .CAMERA_AXI_AWSIZE    ( CAMERA_AXI_awsize    ) ,  
    .CAMERA_AXI_AWBURST   ( CAMERA_AXI_awburst   ) ,  
    .CAMERA_AXI_AWLOCK    ( CAMERA_AXI_awlock    ) ,  
    .CAMERA_AXI_AWCACHE   ( CAMERA_AXI_awcache   ) ,  
    .CAMERA_AXI_AWPROT    ( CAMERA_AXI_awprot    ) ,  
    .CAMERA_AXI_AWQOS     ( CAMERA_AXI_awqos     ) , 
    .CAMERA_AXI_AWUSER    ( CAMERA_AXI_awuser    ) ,  
    .CAMERA_AXI_AWVALID   ( CAMERA_AXI_awvalid   ) , 
    .CAMERA_AXI_AWREADY   ( CAMERA_AXI_awready   ) ,  
    .CAMERA_AXI_WDATA     ( CAMERA_AXI_wdata     ) ,  
    .CAMERA_AXI_WSTRB     ( CAMERA_AXI_wstrb     ) ,
    .CAMERA_AXI_WLAST     ( CAMERA_AXI_wlast     ) ,
    .CAMERA_AXI_WUSER     ( CAMERA_AXI_wuser     ) ,
    .CAMERA_AXI_WVALID    ( CAMERA_AXI_wvalid    ) ,
    .CAMERA_AXI_WREADY    ( CAMERA_AXI_wready    ) ,
    .CAMERA_AXI_BID       ( CAMERA_AXI_bid       ) ,
    .CAMERA_AXI_BRESP     ( CAMERA_AXI_bresp     ) ,
    .CAMERA_AXI_BUSER     (                      ) ,
    .CAMERA_AXI_BVALID    ( CAMERA_AXI_bvalid    ) ,
    .CAMERA_AXI_BREADY    ( CAMERA_AXI_bready    ) ,

    .G                    ( G                    ) ,
    .R                    ( R                    ) ,
    .B                    ( B                    ) ,
    .vga_h_sync           ( vga_h_sync           ) ,
    .vga_v_sync           ( vga_v_sync           ) ,
    .vga_de               (                      ) ,
    .vga_pclk             ( vga_pclk             ) ,
    
    .vga_pwr_off          ( vga_pwr_off          ) ,
    .SDIO_0_wp            ( SDIO_0_wp            ) ,
    
    .camera0_xclk         ( camera0_xclk         ) ,       
    .camera0_pclk         ( camera0_pclk_g       ) ,
    .camera0_yuv          ( camera0_yuv          ) ,
    .camera0_h_sync       ( camera0_h_sync       ) ,
    .camera0_v_sync       ( camera0_v_sync       ) ,
    .camera0_pwrdown      ( camera0_pwrdown      ) ,
    .camera0_resetn       ( camera0_resetn       ) ,
    .camera0_sclk         ( camera0_sclk         ) ,
    .camera0_sda          ( camera0_sda          ) ,
    
    .camera1_xclk         ( camera1_xclk         ) ,  
    .camera1_pclk         ( camera1_pclk_g       ) ,
    .camera1_yuv          ( camera1_yuv          ) ,
    .camera1_h_sync       ( camera1_h_sync       ) ,
    .camera1_v_sync       ( camera1_v_sync       ) ,
    .camera1_pwrdown      ( camera1_pwrdown      ) ,
    .camera1_resetn       ( camera1_resetn       ) ,
    .camera1_sclk         ( camera1_sclk         ) ,
    .camera1_sda          ( camera1_sda          ) ,

	.camera0_cfgAddr      ( camera0_cfgAddr      ) ,
	.camera1_cfgAddr      ( camera1_cfgAddr      ) ,
	.camera0_cfgData      ( camera0_cfgData      ) ,
	.camera1_cfgData      ( camera1_cfgData      ) ,

	.phase_l 		      ( phase_l 		 	 ) ,
	.phase_r 		      ( phase_r 		 	 ) ,
	.phase_x 		      ( phase_x 		 	 ) ,
	.phase_y 		      ( phase_y 		 	 ) ,

    .heat_touch           ( heat_touch           ) ,
    .hall_touch           ( hall_touch           ) ,
    .posl_touch           ( posl_touch           ) ,
    .posr_touch           ( posr_touch           ) ,

    .gaoya                ( gaoya                ) ,
    .beep                 ( beep                 ) ,
    .heat                 ( heat                 ) ,
    .heat_ledon           (                      ) ,

    .dac_sdata            ( dac_sdata            ) ,
    .dac_sclk             ( dac_sclk             ) ,
    .dac_load             ( dac_load             ) ,

    .rtc_scl              ( rtc_scl              ) ,
    .rtc_sda              ( rtc_sda              ) ,
    
    .vp_in                ( vp_in                ) ,
    .vn_in                ( vn_in                ) ,
    .tp_in                ( tp_in                ) ,
    .tn_in                ( tn_in                ) ,
        
    .pl_clk               ( pl_clk               ) ,
    .pwr_ctrl             ( pwr_ctrl             ) ,
    .backlight_pwm        ( backlight_pwm        ) ,    
    .hardware_version     ( hardware_version     ) ,
    .key_button           ( key_button           ) ,    
    .key_intr             ( IRQ_F2P[0]           ) ,
    
    .fusion_proc_intr     ( IRQ_F2P[1]           ) 
);

VERSION_CTRL VERSION_CTRL_inst0
(
    .clka                 ( FCLK_CLK0            ) ,
    .addra                ( camera0_cfgAddr      ) ,
    .douta                ( camera0_cfgData      ) ,
 
    .clkb                 ( FCLK_CLK0            ) ,
    .addrb                ( camera1_cfgAddr      ) ,
    .doutb                ( camera1_cfgData      ) ,

    .hardware_version     ( hardware_version     )
);

endmodule
